package moplayer;

import util.Utils;


public class NoteMapper {
	
	//public static int[] scale = {60, 62, 64, 67, 69, 72, 74, 76, 79, 81};
	public static int[] scale = {60, 62, 64, 65, 67, 69, 71, 72};
	
	public static int mapValueToNote(float x){
		int index = Math.round(Utils.map(x, 0.0f, 1.0f, 0, scale.length - 1));
		return scale[index];
	}
	
	public static int randomNote(){
		int index = Utils.random(scale.length);
		return scale[index];
	}

}
